# -*- coding:utf-8 -*-
# @FileName  :test.py
# @Time      :2020/10/27 9:23
# @Author    :Zhoujirong
# @Desc      :


# Definition for singly-linked list.
class ListNode(object):
    def __init__(self):
        self.val = None
        self.next = None

class ListNode_handle:
    def __init__(self):
        self.cur_node = None

    def add(self, data):
        # add a new node pointed to previous node
        node = ListNode()
        node.val = data
        node.next = self.cur_node
        self.cur_node = node
        return node

    def print_ListNode(self, node):
        while node:
            print('\nnode: ', node, ' value: ', node.val, ' next: ', node.next)
            node = node.next

    def _reverse(self, nodelist):
        list = []
        while nodelist:
            list.append(nodelist.val)
            nodelist = nodelist.next
        result = ListNode()
        result_handle = ListNode_handle()
        for i in list:
            result = result_handle.add(i)
        return result
class Solution:
    def deleteNode(self, node):
        """
        :type node: ListNode
        :rtype: void Do not return anything, modify node in-place instead.
        """
        node.val = node.next.val
        node.next = node.next.next

def runningSum(nums):
    """
    :type nums: List[int]
    :rtype: List[int]
    """
    for i in range(len(nums)):
        if i > 0:
            nums[i] = nums[i] + nums[i - 1]
    return nums

if __name__ == "__main__":
    # a = Solution()
    # print(a.deleteNode([1, 8, 3]))
    import os
    os.chdir(r'D:\zjr\test\war\personCustomInformWS')
    os.popen('jar -cvf personCustomInformWS.war *')
    os.popen(r'copy D:\zjr\test\war\personCustomInformWS\personCustomInformWS.war D:\zjr\test\war')
